reftests: Add a hack to make toplevels work in various WMs
authorBenjamin Otte <otte@redhat.com>
Thu, 5 May 2011 02:29:56 +0000 (04:29 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 5 May 2011 15:33:04 +0000 (17:33 +0200)
commit3f4f900242f7d8c3e1f4e1722e0f211f3347b41d
treee6f4ca698079dd2a93f816a239c17bc1fe37709d
parent5c026f32e960100b290c0cebbb5922ef0e7c252a
reftests: Add a hack to make toplevels work in various WMs

If we have a toplevel, and not a popup window, do wait an additional
0.5s to give the WM/server enough time to actually create the window.

This is a hack and there should be a better solution. But it works.

Please use POPUP windows for tests unless the test must use toplevel
windows.
tests/reftests/gtk-reftest.c